package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.dto.system.LoginDto;
import com.atguigu.spzx.model.dto.system.SysUserDto;
import com.atguigu.spzx.model.entity.system.SysUser;
import com.atguigu.spzx.model.vo.system.LoginVo;
import com.github.pagehelper.PageInfo;

import java.util.Map;

/**
 * @Author yaya
 * @Create 2024/6/18 18:20
 * Description:
 */
public interface SysUserService {
    LoginVo login(LoginDto loginDto);

    SysUser getUserInfo(String token);

    void logout(String token);

    PageInfo<SysUser> findByPage(Integer pageNum, Integer pageSize, SysUserDto sysUserDto);

    void savaSysUser(SysUser sysUser);

    void updateSysUser(SysUser sysUser);

    void deleteById(Long id);

    Map<String, Object> getAllRoleList(Long currentUserId);

}
